<!-- js validate form  -->
<style type="text/css">
	.cl_pass {
		color: blue; 
		text-decoration: underline;
	}
	.display_pass {	
		display: none;
		text-align: left;
	}
</style>

<script type="text/javascript">	
$(document).ready(function() {
	$('.cl_pass').click(function() {
		$('.display_pass').css('display','block');  	
	});
});
</script>

<script type="text/javascript">
$().ready(function() {
	$("#edit").validate({
	});
});
$.metadata.setType("attr", "validate");
</script>

           <div class="content_head">
				<?php echo $title; ?>
			</div>
			
            <?php foreach($admins_value as $edit ){?>
            <form id="edit" method="POST" action="<?php echo base_url()?>back_end/admins/edit/<?php echo $edit['id']; ?>">     
            <div class="content_ct">
		    <div class="content_ct_show">
				<table class="content_ct_show_add_tbl" width="100%">       	
                	<tr>
                    	<td width="15%" style="text-align:right;">Tên đăng nhập:</td>
                    	<td width="85%">
                    		<input type="text" class="required input_txt_table" value="<?php echo $edit['username']; ?>" id="username" name="username">
                    	</td>	
                    </tr>
                    <tr>
                    	<td width="15%" style="text-align:right;">Họ và tên:</td>
                    	<td width="85%">
                    		<input type="text" class="required input_txt_table" value="<?php echo $edit['fullname']; ?>" id="username" name="fullname">
                    	</td>
                    	<td class="tdSearch"></td>
                    </tr>
                    <tr>
                    	<td width="15%" style="text-align:right;">Email:</td>
                    	<td width="85%">
                    		<input type="text" class="required input_txt_table" value="<?php echo $edit['email']; ?>" id="username" name="email">
                    	</td>
                    </tr>
                    <tr>
                    	<td width="15%" style="text-align:right;">Thay đổi password:</td>
                    	<td width="85%">
                    		<p style="text-align: left; padding-bottom: 5px;">
                    			<a href="#" class="cl_pass">Click</a>
                    		</p>
                    		<div class="display_pass">
                    			<p>
                    				<input type="password" class="required inputText" name="password" /> 
                    			</p>
                    		</div>
                    	</td>
                    </tr>
                    <tr>
                    	<td width="15%" style="text-align:right;">Trạng thái:</td>
                    	<td width="85%">
                        	<input type="checkbox" name="status" value="1" class="inputCheck" <?php if ($edit['status'] == 1){ echo "checked=checked"; }?>>
                    	</td>
                    </tr>
                	<tr>
                    	<td width="15%" style="text-align:right;">&nbsp;</td>
                    	<td width="85%">                        	
                            <div class="searchbutton">
								<input type="submit" class="buttonSM" value="Edit" name="editForm" />   
                            </div><!-- end searchbutton -->                      	
                        </td>
                    </tr>
                </table>
            </div><!-- end contentSearch -->
            </div><!-- end contentMain -->
            </form>
            <?php }?>